home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / misc / Makefile.dist < prev    next >
Makefile  |  1994-04-25  |  14KB  |  415 lines

  1. # Generated automatically from Makefile.in by configure.
  2. #
  3. #    RLaB Makefile.in
  4. #
  5.  
  6. # Don't modify
  7. DEFS =         -DHAVE_CONFIG_H
  8. SHELL =        /bin/sh
  9.  
  10. # The name of your C compiler
  11. CC =        gcc
  12.  
  13. # The name of your Fortran compiler (ususally f2c)
  14. F2C =        f2c
  15.  
  16. # The flags to pass along to the C compiler
  17. CFLAGS =    -g
  18.  
  19. # The name of the parser generator, bison or byacc is preffered.
  20. YACC =         bison -y
  21. YFLAGS =    -vdtl
  22.  
  23. # This must be flex, if flex is not available, leave it blank
  24. LEX =        flex
  25.  
  26. # This should be a "new" AWK (not necessary)
  27. AWK =         mawk
  28.  
  29. # This must be the name of a GNU tar program (not necessary)
  30. TAR =         gtar
  31.  
  32. # The name of an install program, either install(1), or cp(1)
  33. INSTALL =     cp
  34. INSTALL_PROGRAM = $(INSTALL)
  35.  
  36. # File name extension used for archive library files (DON'T include leading ".")
  37. A =         a
  38.  
  39. # File name extension used for object files (DON'T include leading ".")
  40. O =         o
  41.  
  42. # File name extension used for executable files (INCLUDING the dot, ".")
  43. EXE =
  44.  
  45. #
  46. # The place to look for libraries on the system
  47. #
  48. LLIBS = -L/usr/local/lib 
  49.  
  50. #
  51. # These are the libraries (all of them). The following are REQUIRED.
  52. # If configure does not find them then type in their location as well
  53. # as the library names in the following order. Example:
  54. # NALIBS = -L/usr/my/lib -lClapack -lCblas -lCfftpack -lCranlib
  55. #
  56. # -lClapack    LAPACK library
  57. # -lCblas    BLAS library
  58. # -lCfftpack    FFTPACK library (double precision version)
  59. # -lCranlib    RANLIB (random number generation)
  60. #
  61. NALIBS =  -lClapack -lCblas -lCfftpack -lCranlib
  62.  
  63. #
  64. # The F2C libraries are REQUIRED
  65. # FLIBS = -L/usr/my/lib -lF77 -lI77
  66. #
  67. FLIBS =  -lF77 -lI77
  68.  
  69. # The readline library (and -ltermcap) should be present if you have
  70. # defined HAVE_READLINE in config.h.
  71. # CMDLIBS = -lreadline -ltermcap
  72. #
  73. CMDLIBS = -L/usr/local/lib  -lreadline -ltermcap
  74.  
  75. #
  76. # The PLPLOT library if you wish to use PLPLOT graphics.
  77. # Note that you need the double version of PLPLOT.
  78. # You should have HAVE_RLAB_PLPLOT defined in config.h to
  79. # make this work. 
  80. # PLIBS = -L/usr/local/plplot -lplplotdX -lX11
  81. # You may need some additional libs to support X11, for example:
  82. # PLIBS = -L/usr/local/plplot -lplplotdX -lX11 -lsocket -lnsl
  83. # is necessary for some SYSVr4 machines.
  84. #
  85. PLOT_PROG = plplot
  86. PLIBS = -L/usr/local/plplot -lplplotdX -lX11 -lsocket -lnsl
  87. INC_DIR =  -I/usr/local/plplot/include
  88.  
  89. #
  90. # Put the whole mess together
  91. #
  92.  
  93. LIBS = $(LLIBS) $(NALIBS) $(FLIBS) $(CMDLIBS) $(PLIBS) -lm
  94.  
  95. #
  96. # Any special flags you might need for your system
  97. #
  98.  
  99. # Silicon Graphics machines need this for popen()
  100. # SPECIAL_FLAGS = -ansiposix
  101.  
  102. SPECIAL_FLAGS = -DASSERT_OFF
  103.  
  104. # prefix: The parent directory for the installation
  105. prefix =        /usr/local
  106. exec_prefix =   $(prefix)
  107. bindir =     $(exec_prefix)/bin
  108. libdir =        $(exec_prefix)/lib
  109. mandir =     $(exec_prefix)/man/man1
  110.  
  111. #
  112. # Don't change these without modifying the install actions
  113. #
  114.  
  115. TOPDIR =     $(libdir)/rlab
  116. RHELPDIR =    $(TOPDIR)/help
  117. RLIBDIR =    $(TOPDIR)/rlib
  118. DEFAULT_RC0 =    $(TOPDIR)/.rlab
  119. TOOLBOX =    $(TOPDIR)/toolbox
  120.  
  121. #
  122. # The default RLaB search path. This path is searched when
  123. # the `help' and `rfile' commands are used. Users can
  124. # override this with the environment variable RLAB_SEARCH_PATH.
  125. #
  126.  
  127. DEFAULT_SEARCH_PATH =    ".:$(TOOLBOX)"
  128.  
  129. #
  130. # The pager command that most users will want.
  131. # Usually this is pg, more, or less.
  132. #
  133.  
  134. DEFAULT_PAGER =    "more"
  135.  
  136. #
  137. # Do not edit below this point until you have tried to make 
  138. #
  139.  
  140. DFLAGS =    -DDEFAULT_RC0=\"$(DEFAULT_RC0)\" \
  141.         -DDEFAULT_HELP=\"$(RHELPDIR)\" \
  142.         -DDEFAULT_LIB=\"$(RLIBDIR)\" \
  143.         -DDEFAULT_PAGER=\"$(DEFAULT_PAGER)\" \
  144.         -DDEFAULT_SEARCH_PATH=\"$(DEFAULT_SEARCH_PATH)\"
  145.  
  146. R_LIBS =    $(LIBS)
  147.  
  148. R_OBJ =        main.$(O) rlab.$(O) lex.yy.$(O) init.$(O) code.$(O) \
  149.         bltin1.$(O) bltin2.$(O) symbol.$(O) \
  150.         list.$(O) listnode.$(O) op.$(O) opapp.$(O) \
  151.         opmat.$(O) scalar.$(O) scop1.$(O) \
  152.         matrix.$(O) matop1.$(O) matop2.$(O) complex.$(O) \
  153.         function.$(O) r_string.$(O) trig.$(O) math_1.$(O) math_2.$(O) \
  154.         math_3.$(O) mathl.$(O) fi_1.$(O) fi_2.$(O) rel.$(O) mem.$(O) util.$(O) \
  155.         btree.$(O) diss.$(O) print.$(O) random.$(O) rfile.$(O) getline.$(O) \
  156.         mm.$(O) misc.$(O) r_plot.$(O) bio.$(O) odei.$(O)
  157.  
  158. R_SRC =        main.c rlab.y scan.l init.c code.c bltin1.c bltin2.c symbol.c \
  159.         list.c listnode.c op.c opapp.c \
  160.         opmat.c scalar.c scop1.c \
  161.         matrix.c matop1.c matop2.c complex.c \
  162.         function.c r_string.c trig.c math_1.c math_2.c \
  163.         math_3.c mathl.c fi_1.c fi_2.c rel.c mem.c util.c \
  164.         btree.c diss.c print.c random.c rfile.c getline.c \
  165.         mm.c misc.c r_plot.c bio.c odei.c
  166.  
  167. F_SRC =     lp.f bl.f ode.f
  168. F_OBJ =     lp.$(O) bl.$(O) ode.$(O)
  169.  
  170. ALLOCA =     
  171. GNU_OBJ =    getopt.$(O) getopt1.$(O) $(ALLOCA)
  172. GNU_SRC =     getopt.c getopt1.c alloca.c
  173.  
  174. SRC =         $(R_SRC) $(F_SRC) $(EXTRA_SRC) $(GNU_SRC) $(CMD_SRC)
  175. OBJ =         $(R_OBJ) $(F_OBJ) $(EXTRA_OBJ) $(GNU_OBJ) $(CMD_OBJ)
  176.  
  177. rlab$(EXE):    $(OBJ)
  178.         $(CC) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) $(OBJ) \
  179.         $(R_LIBS) $(PLOT_LIBS) -o rlab$(EXE)
  180.  
  181. rlabdb:        $(OBJ)
  182.         $(CC) $(CFLAGS) $(OBJ) \
  183.         -L/usr/local/lib -ldbmalloc $(R_LIBS) -o rlabdb 
  184.  
  185. Test:
  186.         time ./rlab -qrl ./test
  187.  
  188. Makefile:    Makefile.in config.status
  189.         $(SHELL) config.status
  190.  
  191. rlab-dist:    rlab
  192.         cp rlab.c rlab.c_dist
  193.         cp y.tab.h y.tabh_dist
  194.         cp lex.yy.c lex.yy_c_dist
  195.         cp Makefile Makefile.dist
  196.         cp lp.c lp.c_dist
  197.         cp bl.c bl.c_dist
  198.         cp ode.c ode.c_dist
  199.  
  200. # Subdirectories to install
  201. COPYDIR =    help rlib toolbox doc examples .rlab config.h
  202.  
  203. install:    rlab mkdir
  204.         -if [ `/bin/pwd` != `(cd ${TOPDIR}; /bin/pwd)` ] ; then \
  205.         tar cf - ${COPYDIR} [A-Z]* | (cd ${TOPDIR}; umask 022; tar xf - ) ;\
  206.         fi
  207.         if test "$(PLOT_PROG)" = "plplot" ; then\
  208.           cp misc/plplot.r ${TOPDIR}/rlib/plot.r;\
  209.         fi
  210.         if test "$(PLOT_PROG)" = "gnuplot" ; then\
  211.           cp misc/gnu_plot.r ${TOPDIR}/rlib/plot.r;\
  212.         fi
  213.         $(INSTALL_PROGRAM) rlab $(bindir)/rlab
  214.         $(INSTALL) doc/rlab.1 $(mandir)/rlab.1
  215.  
  216. mkdir:        
  217.         -mkdir $(TOPDIR) $(RLIBDIR) $(RHELPDIR) $(TOOLBOX)
  218.  
  219. FRC:        
  220.  
  221. tags:        $(SRC)
  222.         etags $(SRC) *.h
  223.  
  224. depend:        $(SRC)
  225.         rm -f make_depends; $(AWK) -f ./misc/depends.awk $(SRC) > make_depends
  226.  
  227. main.$(O):    main.c
  228.         $(CC) $(CFLAGS) $(DEFS) $(DFLAGS) -c main.c
  229.  
  230. lex.yy.$(O):    lex.yy.c config.h
  231.         $(CC) $(CFLAGS) $(DEFS) $(COMMAND_EDIT) -c lex.yy.c
  232.  
  233. lex.yy.c:    scan.l rlab.h code.h y.tab.h list.h util.h mem.h
  234.         if test -n "$(LEX)" ;\
  235.         then    $(LEX) -IL scan.l ;\
  236.             sed -f misc/r.sed lex.yy.c > lex.tmp;\
  237.             mv lex.tmp lex.yy.c;\
  238.         else    echo 'copying distribution files' ;\
  239.             cp lex.yy_c_dist lex.yy.c ;\
  240.         fi
  241.  
  242. rlab.$(O):    rlab.c
  243.         $(CC) $(CFLAGS) $(DEFS) $(YCFLAGS) -c rlab.c
  244.  
  245. y.tab.h rlab.c: rlab.y rlab.h mem.h list.h code.h symbol.h scalar.h \
  246.         function.h r_string.h util.h
  247.         echo 'expect 11 shift/reduce conflicts' ;\
  248.         $(YACC) $(YFLAGS) rlab.y ;\
  249.         mv y.tab.c rlab.c ;
  250.  
  251. mm.$(O):    mm.c
  252.         $(CC) -c -O $(DEFS) mm.c
  253.  
  254. r_plot.$(O):        
  255.         $(CC) -c $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  256.         $(INC_DIR) r_plot.c
  257.  
  258. clean:
  259.         rm -f $(OBJ)
  260.  
  261. fbackup:
  262.         ls -la [A-Z]* $(R_SRC) .rlab rlib help config* examples doc \
  263.         | $(AWK) -f ./misc/sum.awk
  264.         $(TAR) -czvf /dev/rdsk/f05ht [A-Z]* $(R_SRC) .rlab rlib help config* \
  265.         examples doc
  266.  
  267. blasdist:
  268.         $(TAR) cvf ../DIST/rblas.tar lib/blas-C/Makefile \
  269.         lib/blas-C/*.c lib/blas-C/f2c.h
  270.  
  271. lapdist:
  272.         $(TAR) cvf ../DIST/rlap-0.30.tar lib/lapack-C/Makefile \
  273.         lib/lapack-C/*.c lib/lapack-C/f2c.h
  274.  
  275. fftpdist:
  276.         $(TAR) cvf ../DIST/rfft-0.11.tar lib/fftpack-C/Makefile \
  277.         lib/fftpack-C/*.c lib/fftpack-C/f2c.h
  278.  
  279. ranlibdist:
  280.         $(TAR) cvf ../DIST/rnlib-0.11.tar lib/ranlib-C/Makefile \
  281.         lib/ranlib-C/*.c lib/ranlib-C/f2c.h
  282.  
  283. code_dump:
  284.         $(CC) -c $(CFLAGS) -DMALLOC_DUMP code.c
  285.  
  286. #
  287. # Define SUFFIXES for non-UNIX systems and brain damaged make
  288. # utilities
  289. #
  290.  
  291. .SUFFIXES:    $(EXE) .out .$A .ln .$O .c .cc .C .p .f .F .r .y .l .s .S\
  292.         .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo\
  293.         .w .ch .web .sh .elc .el
  294.  
  295. .c.$(O):
  296.         $(CC) -c $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) $<
  297.  
  298. #
  299. # If you are using a Fortran compiler (not f2c) then uncomment the
  300. # second rule, and comment out the 1st
  301. #
  302.  
  303. lp.c:        lp.f
  304.         if test -n "$(F2C)" ;\
  305.         then  $(F2C) -R lp.f ;\
  306.         else echo 'copying distribution files' ;\
  307.               cp lp.c_dist lp.c ;\
  308.         fi
  309.  
  310. bl.c:        bl.f
  311.         if test -n "$(F2C)" ;\
  312.         then  $(F2C) -R bl.f ;\
  313.         else echo 'copying distribution files' ;\
  314.               cp bl.c_dist bl.c ;\
  315.         fi
  316.  
  317. ode.c:        ode.f
  318.         if test -n "$(F2C)" ;\
  319.         then  $(F2C) ode.f ;\
  320.         else echo 'copying distribution files' ;\
  321.               cp ode.c_dist ode.c ;\
  322.         fi
  323.  
  324. #
  325. # F77 = f77
  326. #.f.$(O):
  327. #        $(F77) -c $(FFLAGS) $<
  328. #
  329.  
  330. #
  331. # Special actions for the Fortran Interface files
  332. #
  333. # -DUSE_F2C    to use the f2c C => Fortran convention
  334. # -DUSE_UPPER    to use uppercase convention
  335. # -DUSE_LOWER    to use lowercase convention
  336. # -DUSE_BACK    to use trailing underscore convention
  337. # -DUSE_FRONT    to use leading underscore convention
  338.  
  339. FCONV = -DUSE_F2C
  340.  
  341. fi_1.$(O):
  342.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  343.         fi_1.c
  344.  
  345. fi_2.$(O):
  346.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  347.         fi_2.c
  348.  
  349. matop1.$(O):
  350.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  351.         matop1.c
  352.  
  353. math_3.$(O):
  354.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  355.         math_3.c
  356.  
  357. random.$(O):
  358.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  359.         random.c
  360.  
  361. odei.$(O):
  362.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  363.         odei.c
  364.  
  365. #
  366. # Automatically generated dependencies, do not edit. To regenerate
  367. # type `make depend' and then edit this file to include the new list
  368. # of dependencies.
  369. #
  370.  
  371. main.$(O) : util.h mem.h version.h rlab.h complex.h btree.h scalar.h getopt.h listnode.h matrix.h code.h list.h symbol.h config.h
  372. init.$(O) : util.h r_plot.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h bltin.h
  373. code.$(O) : util.h mem.h y.tab.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h r_string.h list.h function.h symbol.h config.h bltin.h
  374. bltin1.$(O) : matop1.h util.h mathl.h mem.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h bltin.h
  375. bltin2.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h bltin.h
  376. symbol.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h matrix.h code.h list.h r_string.h function.h symbol.h config.h
  377. list.$(O) : mem.h rlab.h listnode.h list.h config.h
  378. listnode.$(O) : mem.h rlab.h listnode.h config.h
  379. op.$(O) : matop1.h util.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
  380. opapp.$(O) : util.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
  381. opmat.$(O) : matop1.h util.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
  382. scalar.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h bltin.h
  383. scop1.$(O) : mathl.h rlab.h btree.h complex.h scalar.h listnode.h code.h list.h symbol.h config.h bltin.h
  384. matrix.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h bltin.h
  385. matop1.$(O) : matop1.h util.h mathl.h mem.h matop2.h bl.h rlab.h complex.h btree.h scalar.h listnode.h matrix.h code.h r_string.h list.h fi.h symbol.h config.h bltin.h
  386. matop2.$(O) : matop1.h mem.h mathl.h rlab.h complex.h btree.h scalar.h listnode.h matrix.h code.h r_string.h list.h symbol.h fi_1.h fi_2.h config.h bltin.h
  387. complex.$(O) : mathl.h rlab.h complex.h btree.h listnode.h code.h list.h symbol.h config.h bltin.h
  388. function.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h function.h symbol.h config.h
  389. r_string.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h r_string.h list.h symbol.h config.h
  390. trig.$(O) : matop1.h util.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
  391. math_1.$(O) : matop1.h util.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h fi_1.h config.h bltin.h
  392. math_2.$(O) : matop1.h util.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h fi_1.h config.h bltin.h
  393. math_3.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h fi.h symbol.h fi_1.h fftp.h config.h fi_2.h bltin.h
  394. mathl.$(O) : mathl.h rlab.h listnode.h config.h
  395. fi_1.$(O) : util.h mem.h mathl.h matop2.h rlab.h bl.h btree.h complex.h scalar.h listnode.h matrix.h code.h r_string.h list.h fi.h symbol.h lp.h config.h
  396. fi_2.$(O) : matop1.h util.h mem.h matop2.h rlab.h bl.h btree.h complex.h scalar.h listnode.h matrix.h code.h r_string.h list.h fi.h symbol.h lp.h config.h
  397. rel.$(O) : matop1.h util.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
  398. mem.$(O) : mem.h rlab.h listnode.h config.h
  399. util.$(O) : mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h
  400. btree.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
  401. diss.$(O) : rlab.h btree.h listnode.h code.h list.h symbol.h config.h
  402. print.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h scan.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
  403. random.$(O) : matop1.h util.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h random.h fi.h symbol.h config.h bltin.h
  404. rfile.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h
  405. getline.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h scan.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
  406. mm.$(O) : rlab.h complex.h listnode.h config.h
  407. misc.$(O) : rlab.h listnode.h config.h
  408. r_plot.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
  409. bio.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h bltin.h
  410. odei.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h fi.h odei.h symbol.h lp.h config.h bltin.h
  411. getopt.$(O) : getopt.h config.h
  412. getopt1.$(O) : getopt.h config.h
  413. alloca.$(O) : config.h
  414.